﻿//#if UNITY_5_3_OR_NEWER

using UnityEngine;
using UnityEditor;
using System.IO;
using System.Collections.Generic;
using System.Text.RegularExpressions;
//using UnityEditor.SceneManagement;
using Newtonsoft.Json;
using cframework_xlua;


public static class VersionTool
{
	public static void SetVersion (string version, int versionNumber)
	{
        PlayerSettings.bundleVersion = version;
        PlayerSettings.Android.bundleVersionCode = versionNumber;
        PlayerSettings.iOS.buildNumber = versionNumber + "";

		PlayerSettings.tvOS.buildNumber = versionNumber + "";
		PlayerSettings.macOS.buildNumber = versionNumber + "";

        AssetDatabase.SaveAssets();
        AssetDatabase.Refresh();
	}
}